package campus.mapper;

import campus.model.User;
import campus.model.UserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    /**
      * @name  登录
     * @Author VULCAN
     * @Date 2020/5/6 23:40
     */
    User login(User user);

    void update(User user);

    User selectemail(String email);

    User findById(String id);
}